package com.dhruvtaara.beta.controller;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.dhruvtaara.beta.toolset.AppLog;
import com.dhruvtaara.beta.toolset.DefaultEncryption;

public class HomeServlet extends HttpServlet {	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8196408301018354566L;
	
	/**
	 * 
	 */
	private static final AppLog logger = new AppLog(
			DefaultEncryption.class.getName());

	/**
	 * 
	 */
	public void doGet(HttpServletRequest request, HttpServletResponse response){
		ServletContext context = getServletContext();
		RequestDispatcher dispatcher = context.getRequestDispatcher("/view/home.jsp");
		try {
			dispatcher.forward(request, response);
		} catch (ServletException e) {
			logger.Error(e.toString());
		} catch (IOException e) {
			logger.Error(e.toString());
		}
	}
}
